import request from '@/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/proxy/blade-broker/mqtt/monitor/clients',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: `/proxy/blade-broker/mqtt/monitor/clients/${id}`,
    method: 'get',
  })
}

export const remove = (ids) => {
  return request({
    url: '/proxy/blade-broker/mqtt/monitor/clients',
    method: 'delete',
    data: ids.split(",")
  })
}

